package com.ciko.code.http;


/**
 * @author lvhua
 *
 * 2015年7月31日
 */

public interface HttpResponseListener {

	/**发起http请求前的手动回调*/
    int RESPONSE_START = 0;
   
    /**返回200成功*/
    public static final int RESPONSE_SUCCESS = 1;
    
    /**业务码非200 失败*/
    public static final int RESPONSE_DONE = 2;
    
    /**httpcode非200错误码 请求失败 */
    public static final int RESPONSE_FAIL = 3;
    
    /**网络连接不正常,网络连接失败*/
    public static final int RESPONSE_ERROR = 4;

    public abstract void onRequestStart(String tag);
    public abstract void onResponseSuccess(BaseResponse<?> response, String tag);
    public abstract void onResponseFail(String tag,int resultCode);
    
    
	
}
